package com.gmrz.uas.plugin.dear;


/**
 * Created by gongyuqiang on 2017/5/15.
 */
public class SmbException extends Exception {
    private int errorCode = -1;
    private int statusCode = -1;
    private String errmsg;

    public SmbException(String message) {
        super(message);
    }

    public SmbException(Exception cause) {
        super(cause);
    }

    public SmbException(int Errorcode, String ErrorMsg) {
        this.errorCode = Errorcode;
        this.errmsg = ErrorMsg;
    }

    public SmbException(String msg, int statusCode){
        super(msg);
        this.statusCode = statusCode;
    }


    public SmbException(String msg, Exception cause) {
        super(msg, cause);
    }

    public SmbException(String msg, Exception cause, int statusCode) {
        super(msg, cause);
        this.statusCode = statusCode;
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    public int getErrorCode() {
        return this.errorCode;
    }

    public String getError() {
        return this.errmsg;
    }
}
